//package com.software.graduationproject.modules.sys.web;
//
//import com.software.graduationproject.commons.util.Result;
//import com.software.graduationproject.commons.util.Results;
//import com.software.graduationproject.modules.sys.entity.SysLog;
//import com.software.graduationproject.modules.sys.service.SysLogService;
//import com.v2coding.validate.CreateGroup;
//import com.v2coding.validate.UpdateGroup;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
///**
// * SysLogController : 系统日志
// * ---------------------------------------------------------------------------------------------------------------------
// */
//@Validated
//@RestController
//@RequestMapping("/Sys/SysLog")
//@Api(value = "API - SysLogController", description = "系统日志")
//public class SysLogController {
//
//    @Autowired
//    private SysLogService sysLogService;
//
////    @PostMapping("/create")
////    @ApiOperation("新增系统日志")
////    public Result create(@RequestBody @Validated(CreateGroup.class) SysLog sysLog) {
////        sysLogService.create(sysLog);
////        return Results.success();
////    }
////
////    @PostMapping("/createList")
////    @ApiOperation("新增系统日志")
////    public Result create(@RequestBody @Validated(CreateGroup.class) Lisv<SysLog> sysLogList) {
////        sysLogService.createList(sysLogList);
////        return Results.success();
////    }
////
////    @PostMapping("/update")
////    @ApiOperation("修改系统日志")
////    public Result update(@RequestBody @Validated(UpdateGroup.class) SysLog sysLog) {
////        sysLogService.update(sysLog);
////        return Results.success();
////    }
////
////    @PostMapping("/updateList")
////    @ApiOperation("修改系统日志")
////    public Result updateList(@RequestBody @Validated(UpdateGroup.class) Lisv<SysLog> sysLogList) {
////        sysLogService.updateList(sysLogList);
////        return Results.success();
////    }
////
////    @PostMapping("/delete")
////    @ApiOperation("删除系统日志")
////    public Result delete(@RequestBody Long id) {
////        sysLogService.delete(id);
////        return Results.success();
////    }
////
////    @PostMapping("/deleteList")
////    @ApiOperation("删除系统日志")
////    public Result deleteList(@RequestBody Long[] ids) {
////        sysLogService.deleteList(ids);
////        return Results.success();
////    }
//
////    @GetMapping("/select")
////    @ApiOperation("查询系统日志")
////    public Result select(Long id) {
////        SysLog sysLog = sysLogService.select(id);
////        return Results.success(sysLog);
////    }
//
//    @GetMapping("/selectList")
//    @ApiOperation("查询系统日志")
//    public Result selectList() {
//        List<SysLog> sysLogList = sysLogService.selectListVo();
//        return Results.success(sysLogList);
//    }
////
////    @GetMapping("/selectPage")
////    @ApiOperation("查询系统日志")
////    public Result selectPage() {
////        Page<SysLogVo> sysLogVoPage = sysLogService.selectPage();
////        return Results.success(sysLogVoPage);
////    }
//
////    @GetMapping("/export")
////    @ApiOperation("导出系统日志")
////    public void export(Select select, String title, String columns, String headers) {
////        try {
////            List<SysLog> sysLogList = sysLogService.selectList(select);
////            HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse();
////            // @formatter:off
////            Excels.ExportParams params = (Excels.ExportParams) new Excels.ExportParams()
////                // 导出数据
////                .setList(sysLogList)
////                // 导出对象
////                .setClazz(SysLog.class)
////                // 设置文件名
////                .setFileName(title)
////                // 导出包含列
////                .setColumns(columns)
////                // 导出页面显示列
////                .setHeaders(headers)
////                // 分页设置
////                // .setPageSize(1).setPageSize(Casts.toInt(select.getSize()))
////            ;
////            // @formatter:on
////            Excels.export(params, response);
////        } catch (Exception e) {
////            throw new ServiceException("导出数据发生错误,请稍后再试", e);
////        }
////    }
//
//}